#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int Max(int* arr,int size)
{
	int x = 0;
	int num = arr[0];

	for (x = 1; x < size; x++)
	{
		if (arr[x] > arr[0])
			num = arr[x];
	}
		
	return num;
	

}
int main()
{
	int arr[10] = { 0 };
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		scanf("%d", arr);
	}
	int ret=Max(arr, 10);
	printf("%d", ret);
	return 0;

}